package main

func main() {

}
func canConstruct(ransomNote string, magazine string) bool {
	m := make([]int, 26)
	for i := range magazine {
		m[magazine[i]-'a']++
	}
	for i := range ransomNote {
		m[ransomNote[i]-'a']--
		if m[ransomNote[i]] == 0 {
			return false
		}
	}
	return true
}
